/**
 * Created by 春旺 on 2017/3/27.
 */
//**************************************************************************************************************
// Number71.java            Java Foundations
//***************************************************************************************************************
    import java.util.Scanner;

public class Number71
{
    public static void main(String[] args)
    {
        int num;
        int[] number = new int[51];

        String another = "y";
        while (another.equalsIgnoreCase("y"))
        {
            System.out.println("Enter a number from 0 to 50: ");
            Scanner scan = new Scanner(System.in);
            num = scan.nextInt();
            number[num] ++;

            System.out.println("DO you want to enter anther number(y/n)");
            Scanner sca = new Scanner(System.in);
            another = sca.nextLine();
        }
        for (int letter = 0 ; letter <= 51 ; letter ++)
        {
            System.out.print( letter + ":");
            System.out.println(number[letter]);
        }

    }
}
